package com.heima.apis.admin;

import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;

public interface AdChannelControllerApi {
    /*条件查询频道列表*/
    public ResponseResult findByNameAndPage(ChannelDto dto);

    /*新增*/
    public ResponseResult insert(AdChannel adChannel);

    /*修改*/
    public ResponseResult update(AdChannel adChannel);
    /*删除*/
    public ResponseResult deleteById(Integer id);
    /**
     * 查询所有频道
     * @return
     */
    public ResponseResult findAll();
}
